Skip to content

feat: Include CF exec context in RouteOptions #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 27, 2025

Conversation

justinvdm
Copy link
Collaborator

@justinvdm justinvdm commented Mar 27, 2025

In addition to request and env, CF also provide ctx: https://developers.cloudflare.com/workers/runtime-apis/context/

This PR adds the API methods in CF's ctx (the "execution context") to our RouteOptions:

const app = defineApp([
  ({ request, env, cf }) => {
    cf.waitUntil(...)
  }
])

Copy link

cloudflare-workers-and-pages bot commented Mar 27, 2025

Deploying redwood-sdk-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: ec8a744
Status: ✅  Deploy successful!
Preview URL: https://abb1c7a9.redwood-sdk-docs.pages.dev
Branch Preview URL: https://include-cf-exec-context.redwood-sdk-docs.pages.dev

View logs

@justinvdm justinvdm merged commit 069a8c4 into main Mar 27, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant